package com.yango.member.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yango.member.entity.Member;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yango.member.entity.vo.LoginVo;
import com.yango.member.entity.vo.MemberVo;
import com.yango.member.entity.vo.RegisterVo;

/**
 * <p>
 * 会员表 服务类
 * </p>
 *
 * @author LiDingYin
 * @since 2021-07-30
 */
public interface MemberService extends IService<Member> {

    //用户登录-返回token字符串
    String login(Member member);

    //用户注册
    boolean register(RegisterVo registerVo);

    Member getOpenIdMember(String openid);

    //统计网站每日注册人数
    Integer getRegisterCount(String day);

    //统计网站每日登录人数
    Integer getLoginCount(String day);

    //分页条件查询会员列表
    void pageList(Page<Member> page, MemberVo memberVo);

    //新增会员
    boolean saveMember(Member member);
}
